package com.ljy.dao;

import com.ljy.pojo.Dht;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;


@Mapper
public interface Dht_Dao {

    //增加
    public abstract int adddht(@Param("c") int c, @Param("h") int h,@Param("id") int id) throws Exception;


    //根据id修改状态
    public abstract int upddht(@Param("c") int c, @Param("h") int h,@Param("id") int id) throws Exception;

    //根据id查询温度
    public abstract Dht seldht(int id)throws Exception;


    //public abstract List<Dht> listdht(int id) throws Exception;

}
